// 微信requestPayment不支持Promise所以封装一个Promise文件
function Payment(data) {
  return new Promise((resolve, reject) => {
    wx.requestPayment({
      ...data,
      success: res => {
        resolve(res)
      },
      fail: err => {
        reject(err)
      }
    })
  })

}
module.exports={ 
Payment
}